Ext.define("admin.view.accessControl.privilegeRecordMainView", {
    extend: 'Ext.panel.Panel',
    layout: 'border',
    alias: 'widget.accessControl.privilegeRecordMainView',
    items: [{
        width: 300,
        border: false,
        region: 'north',
        xtype: 'panel',
        border: false,
        defaults: {
            margin: '5 5 5 5',
            labelWidth: 70,
            border: false,
            defaultType: 'textfield',
            labelAlign: "center"
        },
        layout: {
            type: 'table',
            columns: 6
        },
        items: [
            {xtype: 'textfield', fieldLabel: '用户编号', name: 'username'},
            {xtype: 'textfield', fieldLabel: '用户名称', name: 'userIdentifier'},
            {xtype: 'textfield', fieldLabel: '身份证号', name: 'userIdCode'},
            {xtype: 'textfield', fieldLabel: '设备编号', name: 'deviceIdentifier'},
            {xtype: 'button', text: '查询', scale: 'medium', iconCls: 'search_24', rowspan: 2},
            {xtype: 'button', text: '刷新', scale: 'medium', iconCls: 'refresh_24', rowspan: 2},
            {xtype: 'textfield', fieldLabel: '卡片编号', name: 'cardSerialNumber'},
            {xtype: 'textfield', fieldLabel: '卡片内码', name: 'cardIdentifier'},
            {xtype: 'combobox', fieldLabel: '上传状态', name: 'cardStatus'},
            {xtype: 'textfield', fieldLabel: '设备名称', name: 'deviceName'},
        ]
    }, {
        region: 'center',
        xtype: 'accessControl.privilegeRecordListGridView',
        fit:true
    }]
});
